package mspbots.autotask.common;

/**
 * mspbots.data.autotask.utils.RedisKeys
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/7/15
 */
public class RedisKeys {
    /**
     * Redis default base key
     */
    private final static String REDIS_KEY_PREFIX = "data:auto-task:sync:";

    /**
     * Scheduled anchor lock key
     */
    public final static String TASK_LOCK_ANCHOR_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:lock:";

    /**
     * Scheduled anchor lock key
     */
    public final static String TENANT_RUNNING_LOCK_ANCHOR_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:running:";
    /**
     * Scheduled anchor lock key
     */
    public final static String ON_OFF_TENANT_TASK_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:on-off:";

    /**
     * Scheduled anchor lock key
     */
    public final static String TENANT_PROPERTIES_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "tenant:properties:";

    public final static String ID_ANCHOR_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "anchor:id:";


    public final static String SERVICE_LEVEL_AGREEMENT_RESULT_REDIS_KEY_PREFIX = ID_ANCHOR_REDIS_KEY_PREFIX + "agreement:";

    public final static String SERVICE_CALL_TICKET_REDIS_KEY_PREFIX = ID_ANCHOR_REDIS_KEY_PREFIX + "service-call-ticket:";
    public final static String SERVICE_CALL_TICKET_RESOURCES_REDIS_KEY_PREFIX = ID_ANCHOR_REDIS_KEY_PREFIX + "service-call-ticket-resources:";

    public final static String SERVICE_CALL_TASKS_REDIS_KEY_PREFIX = ID_ANCHOR_REDIS_KEY_PREFIX + "service-call-tasks:";
    public final static String SERVICE_CALL_TASKS__RESOURCES_REDIS_KEY_PREFIX = ID_ANCHOR_REDIS_KEY_PREFIX + "service-call-tasks-resources:";

    /**
     * sync anchor time key
     */
    public final static String TIME_ANCHOR_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "anchor:time:";

    /**
     * sync users anchor time begin
     */
    public final static String USERS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "users:";

    /**
     * sync tickets anchor time begin
     */
    public final static String TICKETS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "tickets:";
    /**
     * sync companies anchor time begin
     */
    public final static String COMPANIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "companies:";

    /**
     * sync contacts anchor time begin
     */
    public final static String CONTACTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contacts:";

    /**
     * sync contacts anchor time begin
     */
    public final static String TIME_ENTRIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "time-entries:";

    /**
     * sync contract blocks anchor time begin
     */
    public final static String CONTRACT_BLOCKS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-blocks:";

    /**
     * sync phases anchor phases time begin
     */
    public final static String PHASES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "phases:";


    /**
     * sync projects anchor time begin
     */
    public final static String PROJECTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contacts:";


    /**
     * sync departments anchor time begin
     */
    public final static String DEPARTMENTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "departments:";


    /**
     * sync tasks anchor time begin
     */
    public final static String TASKS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "tasks:";

    /**
     * sync opportunities anchor time begin
     */
    public final static String OPPORTUNITIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "opportunities:";

    /**
     * public final static String ROLES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX+"roles:";
     * sync roles Role
     */

    public final static String ROLES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "roles:";


    public final static String CONTRACT_SERVICE_BUNDLE_UNITS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-servicecall-bundle-units:";

    public final static String RESOURCES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "resources:";

    public final static String PROJECT_ATTACHMENTS_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX+"anchor:time:project-attachmets:";

    public final static String CONFIGURATION_ITEMS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "ConfigurationItems:";

    public final static String PRODUCTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "products:";


    public final static String SERVICE_CALLS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "servicecall-calls:";

    public final static String CLIENT_PORTAL_USERS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "client-portal-users:";

    /**
     * sync resource role queues anchor time begin
     */
    public final static String RESOURCE_ROLE_QUEUES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "resource-role-queues:";

    public final static String SERVICE_BUNDLES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "servicecall-bundles:";


    /**
     * sync contract servicecall units anchor time begin
     */
    public final static String CONTRACT_SERVICE_UNITS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-servicecall-units:";

    /**
     * sync invoices anchor time begin
     */
    public final static String INVOICES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "invoices:";

    /**
     * sync action types anchor time begin
     */
    public final static String ACTION_TYPES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "action-types:";

    /**
     * appointments types anchor time begin
     */
    public final static String APPOINTMENTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "appointments:";

    /**
     * billing items types anchor time begin
     */
    public final static String BILLING_ITEMS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "billing-items:";

    /**
     * change order charges types anchor time begin
     */
    public final static String CHANGE_ORDER_CHARGES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "change-order-charges:";

    /**
     * company notes types anchor time begin
     */
    public final static String COMPANY_NOTES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "company-note:";

    /**
     * company site configurations types anchor time begin
     */
    public final static String COMPANY_SITE_CONFIGURATIONS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "company-site-configurations:";

    /**
     * company to dos types anchor time begin
     */
    public final static String COMPANY_TO_DOS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "company-to-dos:";

    /**
     * currencies types anchor time begin
     */
    public final static String CURRENCIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "currencies:";

    /**
     * product notes types anchor time begin
     */
    public final static String PRODUCT_NOTES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "product-notes:";

    /**
     * project charges types anchor time begin
     */
    public final static String PROJECT_CHARGES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "project-charges:";

    /**
     * project notes types anchor time begin
     */
    public final static String PROJECT_NOTES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "project-notes:";

    public final static String ADDITIONAL_INVOICE_FIELD_VALUES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "additional-invoice-field-values:";

    /**
     *
     */
    public final static String CHANGE_REQUEST_LINKS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "change-request-links:";
    /**
     *
     */
    public final static String CHECKLIST_LIBRARIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "checklist-libraries:";
    /**
     *
     */
    public final static String CHECKLIST_LIBRARY_CHECKLIST_ITEMS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "checklist-library-checklist-items:";
    /**
     *
     */
    public final static String CLASS_IFICATION_ICONS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "class-ification-icons:";
    /**
     *
     */
    public final static String COMANAGED_ASSOCIATIONS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "comanaged-associations:";
    /**
     *
     */
    public final static String CONFIGURATION_ITEM_BILLING_PRODUCT_ASSOCIATIONS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "configuration-item-billing-product-associations:";
    /**
     *
     */
    public final static String CONFIGURATION_ITEM_CATEGORIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "configuration-item-categories:";
    /**
     *
     */
    public final static String CONFIGURATION_ITEM_CATEGORY_UDF_ASSOCIATIONS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "configuration-item-category-udf-associations:";
    /**
     *
     */
    public final static String CONFIGURATION_ITEM_NOTES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "configuration-item-notes:";
    /**
     *
     */
    public final static String CONFIGURATION_ITEM_TYPES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "configuration-item-types:";
    /**
     *
     */
    public final static String CONTRACT_MILESTONES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-milestones:";
    /**
     *
     */
    public final static String CONTRACT_NOTES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-notes:";
    /**
     *
     */
    public final static String CONTRACT_RATES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-rates:";
    /**
     *
     */
    public final static String CONTRACT_RETAINERS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-retainers:";
    /**
     *
     */
    public final static String CONTRACT_ROLE_COSTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-role-costs:";
    /**
     *
     */
    public final static String INVOICE_TEMPLATES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "invoice-templates:";
    /**
     *
     */
    public final static String NOTIFICATION_HISTORY_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "notification-history:";
    /**
     *
     */
    public final static String OPPORTUNITY_ATTACHMENTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "opportunity-attachments:";
    /**
     *
     */
    public final static String ORGANIZATIONAL_LEVEL1_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "organizational-level1:";
    /**
     *
     */
    public final static String ORGANIZATIONAL_LEVEL2_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "organizational-level1:";
    /**
     *
     */
    public final static String PRICE_LIST_PRODUCTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "price-list-products:";
    /**
     *
     */
    public final static String PRICE_LIST_PRODUCT_TIERS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "price-list-product-tiers:";
//    public final static String CHANGE_REQUEST_LINKS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX+"change-request-links-types:";


    /**
     * sync billingitemapprovallevels anchor time begin
     */
    public final static String BILLING_ITEM_APPRAVAL_LEVELS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "billing-item-approval-levels:";
    /**
     * sync billingcodes anchor time begin
     */
    public final static String BILLING_CODES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "billing-codes:";

    /**
     * sync companyalerts anchor time begin
     */
    public final static String COMPANY_ALERTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "company-alerts:";

    /**
     * sync companyattachments anchor time begin
     */
    public final static String COMPANY_ATTACHMENTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "company-attachments:";

    /**
     * sync companylocations anchor time begin
     */
    public final static String COMPANY_LOCATIONS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "company-locations:";

    /**
     * sync contractbillingrules anchor time begin
     */
    public final static String CONTRACT_BILLING_RULES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-billing-rules:";

    /**
     * sync contractblockhourfactors anchor time begin
     */
    public final static String CONTRACT_BLOCK_HOUR_FACTORS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-block-hour-factors:";

    /**
     * sync contractcharges anchor time begin
     */
    public final static String CONTRACT_CHARGES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-charges:";

    /**
     * sync contractcharges anchor time begin
     */
    public final static String CONTRACT_EXCLUSION_ROLES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-exclusion-roles:";

    /**
     * sync contractexclusionsetexcludedroles anchor time begin
     */
    public final static String CONTRACT_EXCLUSION_SET_EXCLUDED_ROLES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-exclusion-set-excluded-roles:";

    /**
     * sync contractexclusionsetexcludedworktypes anchor time begin
     */
    public final static String CONTRACT_EXCLUSION_SET_EXCLUDED_WORK_TYPES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-exclusion-set-excluded-work-types:";

    /**
     * sync contractexclusionsets anchor time begin
     */
    public final static String CONTRACT_EXCLUSION_SETS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contract-exclusion-sets:";

    /**
     * sync expenseitems anchor time begin
     */
    public final static String EXPENSE_ITEMS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "expense-items:";

    /**
     * sync expensereports anchor time begin
     */
    public final static String EXPENSE_REPORTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "expense-reports:";

    /**
     * sync holidays anchor time begin
     */
    public final static String HOLIDAYS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "holidays:";

    /**
     * sync holidaysets anchor time begin
     */
    public final static String HOLIDAY_SETS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "holiday-sets:";

    /**
     * sync internallocations anchor time begin
     */
    public final static String INTERNAL_LOCATIONS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "internal-locations:";

    /**
     * sync organizationallevelassociations anchor time begin
     */
    public final static String ORGANIZATIONAL_LEVEL_ASSOCIATIONS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "organizational-level-associations:";

    /**
     * sync purchaseapprovals anchor time begin
     */
    public final static String QUOTE_ITEMS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "quote-items:";

    /**
     * sync organizationalresources anchor time begin
     */
    public final static String ORGANIZATIONAL_RESOURCES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "organizational-resources:";

    /**
     * sync purchaseapprovals anchor time begin
     */
    public final static String PURCHASE_APPROVALS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "purchase-approvals:";

    /**
     * sync purchaseorderitems anchor time begin
     */
    public final static String PURCHASE_ORDER_ITEMS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "purchase-order-items:";
}
